<?php $url = Yii::app()->assetManager->publish(
    Yii::getPathOfAlias('ext.realtimeChatWidget.assets')
); ?>
<!--<link rel="stylesheet/less" type="text/css" href="<?php echo $url; ?>/lib/twitter-bootstrap/lib/bootstrap.less">
<script src="<?php echo $url; ?>/lib/less/less-1.1.5.min.js"></script>
-->
<link href="<?php echo $url; ?>/css/styles.css" rel="stylesheet" />
<link href="<?php echo $url; ?>/css/pusher-chat-widget.css" rel="stylesheet" />

<script src="http://js.pusher.com/1.12/pusher.min.js"></script>
<script src="<?php echo $url; ?>/js/PusherChatWidget.js"></script>    
<script>
	$(function() {
		var pusher = new Pusher('b274b4d911a2ef996021');
		var chatWidget = new PusherChatWidget(pusher, {
			appendTo: '#pusher_chat_widget'
		});
	});
	$(document).ready(function(){
		$('.pusher-chat-widget-header input[name="nickname"]').val('<?php echo Yii::app()->user->name['userName']; ?>');
		$('.pusher-chat-widget-header input[name="email"]').val('<?php echo Yii::app()->user->name['userEmail']; ?>');
	});
</script>
<div id='pusher_chat_widget'></div>